﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PBO.Game.BattleClass
{
    public partial class Pokemon
    {
        public event EventHandler EndTurn;

        public void OnEndTurn()
        {
            if (this.EndTurn != null)
                EndTurn(this, EventArgs.Empty);
        }

        public event EventHandler HpChanged;
        protected void OnHpChanged()
        {
            if (this.HpChanged != null)
                HpChanged(this, EventArgs.Empty);
        }

        public event EventHandler StateChanged;
        protected void OnStateChanged()
        {
            if (this.StateChanged != null)
                StateChanged(this, EventArgs.Empty);
        }

        public event EventHandler Died;
        protected void OnDied()
        {
            if (this.Died != null)
                Died(this, EventArgs.Empty);
        }

        public event EventHandler ImageChanged;
        protected void OnImageChanged()
        {
            if (this.ImageChanged != null)
                ImageChanged(this, EventArgs.Empty);
        }
    }
}
